/*
 * DTO.cpp
 *
 *  Created on: Oct 23, 2011
 *      Author: gonzalo
 */

#include "DTO.h"

DTO::DTO(DTOTypes type,std::string owner){
	this->type = type;
	this->owner = owner;
}

std::string DTO::getOwner() const{
	return owner;
}

DTO::~DTO() {
}

const DTOTypes DTO::getType() const{
	return type;
}

std::string DTO::serializar(){
	return UtilString::TOlenghtStringStringValue(this->type);
}
void DTO::deserializar(std::string& string){
	std::string value = UtilString::FROMlenghtStringStringValue(string);
	this->type= (DTOTypes)UtilString::stringToInt(value);
}
